package com.fzkj.shejimoshi.strategy;

import com.fzkj.shejimoshi.strategy.domain.User;
import com.fzkj.shejimoshi.strategy.enums.LoginType;

/**
 * @DESCRIPTION: TODO github具体实现
 * @AUTHOR: AnotherOne
 * @DATE: 2021/7/16 11:28
 */
public class GithubUserStrategy implements UserStrategy {

    @Override
    public User getUser(String name) {
        // 通过传递过来的信息获取数据
        System.out.println(name + "请求github登录");
        return null;
    }

    /**
     * 返回支持的登录类型
     * @return
     */
    public LoginType supportType(){
        return LoginType.GITHUB;
    }
}
